package com.ruoyi.gp.domain.bo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

import java.util.Date;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 问卷业务对象 survey
 *
 * @author ruoyi
 * @date 2024-03-08
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class SurveyBo extends BaseEntity {

    /**
     * 问卷id
     */
    @TableId(type = IdType.AUTO)
    private Long surveyId;

    /**
     * 问卷标题
     */
    @NotBlank(message = "问卷标题不能为空", groups = { AddGroup.class, EditGroup.class })
    private String title;

    /**
     * 开始时间
     */
    private Date startTime;

    /**
     * 结束时间
     */
    private Date endTime;

    /**
     * 状态
     */
    @NotBlank(message = "状态不能为空", groups = { AddGroup.class, EditGroup.class })
    private String status;


}
